package com.orange.core.pojo.entity.oss;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.orange.core.pojo.entity.ICreateModel;
import com.orange.core.pojo.entity.IIntIdModel;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
public class OssFile implements IIntIdModel<OssFile>, ICreateModel<OssFile> {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private String filename;
    private String path;
    private String bucketName;
    private Integer width;
    private Integer height;
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT)
    private Integer createBy;

    @TableField(exist = false)
    private byte[] object;
}
